package com.cw.lang.common.mapper.common.list;

import java.util.List;

import org.apache.ibatis.annotations.InsertProvider;

import com.cw.lang.common.mapper.provider.list.InsertListProviderWrapper;

import tk.mybatis.mapper.annotation.RegisterMapper;

/**
 * 批量插入
 *
 * @author chenw
 * @version V2.1
 * @since 2.1.0 2019-04-09 17:06
 */
@RegisterMapper
public interface InsertListMapper<T> {

    /**
     * 批量插入
     *
     * @param recordList 记录
     * @return 影响条数
     */
    @InsertProvider(type = InsertListProviderWrapper.class, method = "dynamicSQL")
    int insertList(List<T> recordList);
}
